.class Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;
.super Ljava/lang/Object;
.source "AppAlbumActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->getGroupView(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

.field final synthetic val$appModel:Lcom/brixd/niceapp/model/AppModel;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;Lcom/brixd/niceapp/model/AppModel;)V
    .registers 3
    .param p1, "this$1"    # Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

    .prologue
    .line 316
    iput-object p1, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;->this$1:Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 8
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 319
    new-instance v0, Lcom/brixd/niceapp/activity/fragment/DownloadDialog;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;->this$1:Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->getContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/AppModel;->getAppSize()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/AppModel;->getTitle()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v4}, Lcom/brixd/niceapp/model/AppModel;->getPackageName()Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v5}, Lcom/brixd/niceapp/model/AppModel;->getId()I

    move-result v5

    invoke-direct/range {v0 .. v5}, Lcom/brixd/niceapp/activity/fragment/DownloadDialog;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    .line 320
    .local v0, "downloadDialog":Lcom/brixd/niceapp/activity/fragment/DownloadDialog;
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getDownloadUrls()Ljava/util/HashMap;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/activity/fragment/DownloadDialog;->setDownloadUrls(Ljava/util/HashMap;)V

    .line 321
    new-instance v1, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2$1;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2$1;-><init>(Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;)V

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/activity/fragment/DownloadDialog;->setOnDownloadTypeClickEvent(Lcom/brixd/niceapp/activity/fragment/DownloadDialog$OnDownloadTypeClickEvent;)V

    .line 344
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;->val$appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getId()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/activity/fragment/DownloadDialog;->showOrDownload(I)V

    .line 345
    return-void
.end method
